<template>
  <div class="oneLineImgCode1">
    <div class="flex flex-title">
      <template v-if="variablesObject.icon && variablesObject.icon[0]">
        <img :src="variablesObject.icon[0].url" alt class="icon" />
      </template>
      <div>
        <div class="flex">
          <p class="title">{{variablesObject.title}}</p>
          <p class="line">|</p>
          <p class="subTitle">{{variablesObject.subTitle}}</p>
        </div>
        <p class="desc">{{variablesObject.desc}}</p>
      </div>
    </div>
    <div class="flex" v-if="variablesObject.imgUlrList && variablesObject.imgUlrList.length>1">
      <div class="li" v-for="(item,index) in variablesObject.imgUlrList.slice(0,2)" :key="index">
        <router-link to="">
          <img :src="item.imgUrl" alt class="image" />
        </router-link>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    variablesObject: {
      type: Object,
      default: () => {
        return {};
      }
    }
  },
  data() {
    return {};
  },
  methods: {},
  mounted() {}
};
</script>
<style lang="scss" scoped>
.oneLineImgCode1 {
  padding: 0.1rem;
  background: #fff;
  margin-bottom: 0.1rem;
  .flex {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .flex-title {
    padding: 0.1rem 0;
    justify-content: center;
  }
  .icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
  }
  p {
    margin: 0;
  }
  .title {
    font-size: 16px;
    color: #333;
  }
  .subTitle {
    color: #333;
  }
  .line {
    margin: 0 10px;
  }
  .desc {
    color: #999;
    margin: 5px 0;
  }
  .li {
    width: 50%;
    &:first-child {
      margin-right: 10px;
    }
    a {
      height: 140px;
      display: block;
    }
    .image {
      width: 100%;
      height: 100%;
    }
  }
}
</style>